package com.sinosoft.emplmis.jobless.manager.impl;

import java.util.List;

import org.apache.log4j.Logger;

import com.sinosoft.emplmis.jobless.dao.JoblessServerMapper;
import com.sinosoft.emplmis.jobless.entity.JoblessServerEntity;
import com.sinosoft.emplmis.jobless.manager.JoblessServerManager;
import com.sinosoft.emplmis.jobless.web.dto.JoblessServerData;

public class JoblessServerManagerImpl implements JoblessServerManager{
   
	private JoblessServerMapper joblessServerMapper;
	
	public JoblessServerMapper getJoblessServerMapper() {
		return joblessServerMapper;
	}

	public void setJoblessServerMapper(JoblessServerMapper joblessServerMapper) {
		this.joblessServerMapper = joblessServerMapper;
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		Logger.getRootLogger().info("根据主键删除失业人员服务台账");
		return joblessServerMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(JoblessServerEntity Entity) {
		Logger.getRootLogger().info("为指定失业人员添加服务台账");
		return joblessServerMapper.insert(Entity);
	}

	@Override
	public List<JoblessServerEntity> selectAll(String unemployedId) {
		Logger.getRootLogger().info("获取指定失业人员服务台账");
		return joblessServerMapper.selectAll(unemployedId);
	}
	
	@Override
	public JoblessServerEntity selectByPrimaryKey(String id) {
		Logger.getRootLogger().info("获取特定失业人员的指定服务台账记录");
		return joblessServerMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKey(JoblessServerEntity record) {
		Logger.getRootLogger().info("更新指定失业人员的服务台账");
		return joblessServerMapper.updateByPrimaryKey(record);
	}

	@Override
	public int count(String unemployedId) {
		Logger.getRootLogger().info("获取总条目数");
		return joblessServerMapper.count(unemployedId);
	}
	
}
